package cc.inq.db.tools;

/**
 * 数据库连接配置
 * @author firefly
 * @scene 2019年3月1日
 */
public class DBLinkInfo {
	private String type;
	private String dbName;
	private String ip;
	private String port;
	private String usr;
	private String pwd;

	public DBLinkInfo(String type,String dbName,String ip, String port, String usr, String pwd) {
		super();
		this.type = type;
		this.dbName = dbName;
		this.ip = ip;
		this.port = port;
		this.usr = usr;
		this.pwd = pwd;
	}

	public String toString() {
		return this.type + "\t" + this.dbName + "\t" + this.ip + "\t" + this.port + "\t" + this.usr + "\t" + this.pwd;
	}

	public String getLable() {
		return this.type + "[" + this.ip +"]" + this.dbName;
	}

	public String getType() {
		return type;
	}

	public String getDbName() {
		return dbName;
	}

	public String getIp() {
		return ip;
	}

	public String getPort() {
		return port;
	}

	public String getUsr() {
		return usr;
	}

	public String getPwd() {
		return pwd;
	}
}
